import '../base/request.dart';

// 排行榜请求类
class RankingRequest extends BaseRequest {
  RankingRequest(String sort, int pageIndex, int pageSize) {
    this
      ..setQueryParams(sort, 'sort')
      ..setQueryParams(pageIndex, 'pageIndex')
      ..setQueryParams(pageSize, 'pageSize')
      ..setHeader('ZmEtMjAyMS0wNC0xMiAyMToyMjoyMC1mYQ==fa', "auth-token")
      ..setHeader('fa', 'course-flag');
  }
  @override
  bool get isHttps => true;

  @override
  SupportMethods get method => SupportMethods.GET;

  @override
  bool get needLogin => true;

  @override
  String get path => "ranking";

  @override
  String get route => "uapi/fa";
}
